package com.tianyi.sfzy1.controller;

import com.tianyi.sfzy1.service.ChargetypeService;
import com.tianyi.sfzy1.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/chargetype")
public class ChargetypeController {
    @Autowired
    private ChargetypeService chargetypeService;
    @RequestMapping("/selectAllChargetype")
    public R selectAllChargetype(){
        return R.ok(chargetypeService.selectAllChargetype());
    }
}
